<!--{eval $friendsname = array(1 => '{lang friendname_1}',2 => '{lang friendname_2}',3 => '{lang friendname_3}',4 => '{lang friendname_4}');}-->
<!--{if empty($diymode)}-->
<!--{template common/header}-->

<div id="pt" class="bm cl">
	<!--{subtemplate common/simplesearchform}-->
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<a href="home.php">$_G[setting][navs][4][navname]</a> <em>&rsaquo;</em> 
		<a href="home.php?mod=space&do=album">{lang album}</a>
		<!--{if $_GET['view']=='me'}-->
		 <em>&rsaquo;</em> <a href="home.php?mod=space&uid=$space[uid]&do=album&view=me">{$space[username]}{lang somebody_album}</a>
		<!--{/if}-->
	</div>
</div>

<style id="diy_style" type="text/css"></style>
<div class="wp">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
		<div class="bm bw0">
		<!--{if (!$_G['uid'] && !$space[uid]) || $space[self]}-->
			<h1 class="mt"><img alt="album" src="{STATICURL}image/feed/album.gif" class="vm" /> {lang album}</h1>
		<!--{/if}-->
		<!--{if $space[self]}-->
			<ul class="tb cl">
				<li$actives[we]><a href="home.php?mod=space&uid=$space[uid]&do=album&view=we">{lang friend_album}</a></li>
				<li$actives[me]><a href="home.php?mod=space&uid=$space[uid]&do=album&view=me">{lang my_album}</a></li>
				<li$actives[all]><a href="home.php?mod=space&uid=$space[uid]&do=album&view=all">{lang view_all}</a></li>
				<li class="o"><a href="home.php?mod=spacecp&ac=upload">{lang upload_pic}</a></li>
			</ul>
		<!--{else}-->
			<!--{eval 
				$_G['home_tpl_spacemenus'][] = "<a href=\"home.php?mod=space&uid=$space[uid]&do=album&view=me\">{lang they_album}</a>";
			}-->
			<!--{template home/space_menu}-->
		<!--{/if}-->

		<!--{if $space[self] && $_GET['view']=='me'}-->
			<p class="tbmu">
				{lang explain_album}
			</p>
		<!--{/if}-->

		<!--{if $_GET[view] == 'all'}-->
			<div class="tbmu cl">
				<!--{if $_GET[view]=='all' && $_G['setting']['albumcategorystat'] && $category}-->	
				<div class="y">
					<select name="albumlist" id="albumlist" width="68" onchange="location.href='home.php?mod=space&do=album&catid='+this.value+'&view=all'">
					<option value="">{lang category_browse}</option>
					<!--{loop $category $value}-->
						<option value="{$value[catid]}"{if $_GET[catid]==$value[catid]} selected="selected"{/if}>$value[catname]</option>
					<!--{/loop}-->
					</select>
				</div>
				<!--{/if}-->
				<a href="home.php?mod=space&do=album&view=all&order=dateline" $orderactives[dateline]>{lang newest_update_album}</a><span class="pipe">|</span>
				<a href="home.php?mod=space&do=album&view=all&order=hot" $orderactives[hot]>{lang hot_pic_recommend}</a>
			</div>
		<!--{/if}-->

		<!--{if ($_GET['view'] == 'we') && $userlist}-->
			<p class="tbmu">
				{lang filter_by_friend}
				<select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
					<option value="">{lang all_friends}</option>
					<!--{loop $userlist $value}-->
					<option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
					<!--{/loop}-->
				</select>
			</p>
		<!--{/if}-->

<!--{else}-->
<!--{template home/space_header}-->
	<div id="ct" class="ct2 wp cl">
		<div class="mn">
			<div class="bm">
				<div class="bm_h cl">
					<h1 class="mt">{lang album}<!--{if $space[self]}--><span class="xs1 xw0">( <a href="home.php?mod=spacecp&ac=upload">{lang upload_pic}</a> )</span><!--{/if}--></h1>
				</div>
				<div class="bm_c">
<!--{/if}-->


			<div class="ptw">
			<!--{if $picmode}-->

				<!--{if $pricount}-->
				<p class="mbw">{lang hide_pic}</p>
				<!--{/if}-->
				<!--{if $count}-->
				<ul class="ml mlp cl">
					<!--{loop $list $key $value}-->
					<li class="d">
						<div class="c">
							<a href="home.php?mod=space&uid=$value[uid]&do=album&picid=$value[picid]"><!--{if $value[pic]}--><img src="$value[pic]" alt="" /><!--{/if}--></a>
						</div>
						<p class="ptm"><a href="home.php?mod=space&uid=$value[uid]&do=album&id=$value[albumid]" class="xi2">$value[albumname]</a></p>
						<span><a href="home.php?mod=space&uid=$value[uid]">$value[username]</a></span>
					</li>
					<!--{/loop}-->
				</ul>
				<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
				<!--{else}-->
				<div class="emp">{lang no_album}</div>
				<!--{/if}-->

			<!--{else}-->

				<!--{if $searchkey}-->
				<p class="mbw">{lang follow_search_album} <span style="color: red; font-weight: 700;">$searchkey</span> {lang doing_record_list}</p>
				<!--{/if}-->

				<!--{if $pricount}-->
				<p class="mbw">{lang hide_album}</p>
				<!--{/if}-->

				<!--{if $count}-->
				<ul class="ml mla cl">
					<!--{loop $list $key $value}-->
					<!--{eval $pwdkey = 'view_pwd_album_'.$value['albumid'];}-->
					<li>
						<div class="c">
							<a href="home.php?mod=space&uid=$value[uid]&do=album&id=$value[albumid]" {if $value[uid]!=$_G[uid] && $value[friend]=='4' && $value[password] && empty($_G[cookie][$pwdkey])} onclick="showWindow('list_album_$value[albumid]', this.href, 'get', 0);"{/if}><!--{if $value[pic]}--><img src="$value[pic]" alt="$value[albumname]" /><!--{/if}--></a>
						</div>
						<p class="ptn"><a href="home.php?mod=space&uid=$value[uid]&do=album&id=$value[albumid]" {if $value[uid]!=$_G[uid] && $value[friend]=='4' && $value[password] && empty($_G[cookie][$pwdkey])} onclick="showWindow('list_album_$value[albumid]', this.href, 'get', 0);"{/if} class="xi2"><!--{if $value[albumname]}-->$value[albumname]<!--{else}-->{lang default_album}<!--{/if}--></a><!--{if $value[picnum]}--> ($value[picnum]) <!--{/if}--></p>
						<!--{if $value[uid]==$_G[uid]}-->
							<p class="xg1"><a href="home.php?mod=spacecp&ac=album&op=editpic&albumid=$value[albumid]">{lang edit}</a> <a href="home.php?mod=spacecp&ac=upload&albumid=$value[albumid]">{lang upload}</a>
							</p>
						<!--{else}-->
							<p><a href="home.php?mod=space&uid=$value[uid]">$value[username]</a></p>
						<!--{/if}-->
						<!--{if $_GET[view]!='me'}--><span>{lang update} <!--{date($value[updatetime], 'n-j H:i')}--></span><!--{/if}-->
					</li>
					<!--{/loop}-->
				</ul>
				<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
				<!--{else}-->
				<div class="emp">{lang no_album}</div>
				<!--{/if}-->

			<!--{/if}-->
			</div>


<script type="text/javascript">
function fuidgoto(fuid) {
	window.location.href = 'home.php?mod=space&do=album&view=we&fuid='+fuid;
}
</script>

<!--{if empty($diymode)}-->
		</div>
		<!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
	</div>
	<div class="appl">
		<!--{subtemplate common/userabout}-->
	</div>
</div>

<div class="wp mtn">
	<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
	
<!--{else}-->
			</div>
		</div>
	</div>
	<div class="sd">
		<!--{subtemplate home/space_userabout}-->
	</div>
</div>
<!--{/if}-->
<!--{template common/footer}-->